package com.abetsy.vben.service.impl;

import com.abetsy.vben.param.DramaSharePreviewParam;
import com.abetsy.vben.service.PreviewStrategy;
import com.abetsy.vben.utils.i18n.VbenException;
import com.abetsy.vben.vo.ShareDramaInfoVo;
import org.springframework.stereotype.Component;

@Component
public class AlipanPreviewStrategy implements PreviewStrategy {
    @Override
    public ShareDramaInfoVo previewDramaShare(DramaSharePreviewParam sharePreviewParam) {
        VbenException.locale("resource.type.not.supported");
        return null;
    }

    @Override
    public boolean supports(DramaSharePreviewParam sharePreviewParam) {
        return sharePreviewParam.getCloudType().equalsIgnoreCase("alipan");
    }
}
